package com.lune.job.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lune.job.pojo.ResPageBean;
import com.lune.job.pojo.Student;
import com.lune.job.pojo.User;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Caiyilin
 * @since 2022-03-06
 */
public interface IStudentService extends IService<Student> {

    /**
     * 登录
     */
    Student login(String userName, String password);

    /**
     * 根据ID查询学生
     * @param id
     * @return
     */
    Student detail(Integer id);

    /**
     * 分页查询所有学生
     * @param currentPage
     * @param size
     * @param student
     * @return
     */
    ResPageBean getAllStudentsByPage(Integer currentPage, Integer size, Student student);

    /**
     * 条件查询学生用户
     * @param student
     * @return
     */
    List<Student> queryByCon(Student student);
}
